package entity;

public class CarShop {
	
	private Book book;
	private int num;
	private float total;
	public Book getBook() {
		return book;
	}
	public void setBook(Book book) {
		this.book = book;
	}
	public int getNum() {
		return num;
	}
	public void setNum(int num) {
		this.num = num;
		this.total = num * book.getSalesprice();
	}
	public float getTotal() {
		return total;
	}
	
	
	
	
	
}
